package test.allrolespresent;

import dk.au.cs.peterbn.annotations.Member;
import dk.au.cs.peterbn.annotations.Pattern;

/**
 * Computes the price of the fuel based on a fixed price
 */
@Pattern(id="test.allrolespresent",role="ConcreteStrategy",name = "gof:Strategy")
public class LinearStrategy implements RateStrategy {

    @Override
    @Member(role = "AlgorithmInterface" ,id = "test.allrolespresent")
    public int calculatePrice(int amount) {
        return amount;
    }
}
